import request from '@/utils/request.js'
import apis from '@/utils/api'
/**
 * @param {Object} params
 * 商品
 */
export function addChannel(params) {
    return request.globalRequest(apis.addChannel, 'POST', params)
}

export function delChannel(params) {
    return request.globalRequest(apis.delChannel, 'POST', params)
}

export function getChannelList(params) {
    return request.globalRequest(apis.getChannelList, 'POST', params)
}
export function getAllChannelList(params) {
    return request.globalRequest(apis.getAllChannelList, 'POST', params)
}
export function updateChannel(params) {
    return request.globalRequest(apis.updateChannel, 'POST', params)
}
export function checkChannelExists(params) {
    return request.globalRequest(apis.checkChannelExists, 'POST', params)
}


export default {
	addChannel,
	delChannel,
	getChannelList,
	getAllChannelList,
	checkChannelExists,
	updateChannel
}